from django.conf.urls import patterns, include, url
import os
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$','technology.views.homepage'),
    # url(r'^$','restore.views.checkSignature'),
    url(r'^tec_intro/(.+)/$','technology.views.technologyIntroduce'),
    url(r'^tec_adapt/(.+)/$','technology.views.technologyAdapt'),
    url(r'^tec_apply/(.+)/$','technology.views.technologyAapply'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^login_validation/$','technology.views.loginValidation'),
    url(r'^technology_load/$','technology.views.technologyLoad'),
    url(r'^login/$','technology.views.loginhtml'),
    url(r'^tec_compare/$','technology.views.tecCompare'),
    url(r'^tec_delete/(.+)/$','technology.views.tecDelete'),
    url(r'^tec_modify/(.+)/$','technology.views.tecModify'),
    url(r'^tec_export/$','technology.views.tecExport'),
    url(r'^login/$','technology.views.loginhtml'),
    url(r'^register/$','technology.views.registerhtml'),
    url(r'^register_validate/$','technology.views.registeValidate'),
    url(r'^add_user_submit/$','technology.views.addUserSubmit'),
    url(r'^logout/$','technology.views.logout'),
    url(r'^read_pdf/$','technology.views.read_pdf'),
    url(r'^tec_add/$','technology.views.technologyAdd'),
    url(r'^tec_add_submit/$','technology.views.tecAddSubmit'),
    url(r'^tec_modify_submit/$','technology.views.tecModifySubmit'),
    url(r'^tec_filter/$','technology.views.tecFilter'),
    url(r'^medias/(?P<path>.*)$', 'django.views.static.serve',
     {'document_root':
          os.path.join(os.path.dirname(__file__),'medias/').replace('\\','/')
     }),
    url(r'^user-modify-list/(.+)/$','technology.views.userModifyList'),
    url(r'^user-delete-list/(.+)/$','technology.views.userDeleteList'),

    url(r'^user-list/$','technology.views.userList'),
    url(r'^user-add/$','technology.views.userAdd'),
    url(r'^modify_user_submit/$','technology.views.modifyUserSubmit'),

    url(r'^psw-modify/$','technology.views.pswModify'),
    url(r'^psw_modify_submit/$','technology.views.pswModifySubmit'),

)
